package network;

import java.io.Serializable;
import java.net.InetAddress;

import map.Lightmap;
import objects.Player;

public class UserAction implements Serializable {

	
	private static final long serialVersionUID = 7660357258465661320L;
	private Player player;
	private Commands command;
	private int userId;
	private InetAddress inetAddress;
	private int port;
	private int newLevelIndex;
	private Lightmap lightmap;
	
	public UserAction(Player player, Commands command, InetAddress inetAddress, int port, int clientId) {
		this.player = player;
		this.command = command;
		this.inetAddress = inetAddress;
		userId = clientId;
		this.port = port;
	}

	public Commands getCommand() {
		return command;
	}

	public void setCommand(Commands command) {
		this.command = command;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public InetAddress getInetAddress() {
		return inetAddress;
	}

	public void setInetAddress(InetAddress inetAddress) {
		this.inetAddress = inetAddress;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public Player getPlayer() {
		return player;
	}

	public void setPlayer(Player player) {
		this.player = player;
	}

	public int getNewLevelIndex() {
		return newLevelIndex;
	}

	public void setNewLevelIndex(int newLevelIndex) {
		this.newLevelIndex = newLevelIndex;
	}

	public Lightmap getLightmap() {
		return lightmap;
	}

	public void setLightmap(Lightmap lightmap) {
		this.lightmap = lightmap;
	}
	
	
	
	
	
}
